﻿<Window xmlns:my="clr-namespace:Scoot.UI"  x:Class="Scoot.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Scoot"
        xmlns:my1="clr-namespace:Scoot.UI.Conversation"
        Title="Scoot" Height="432" Width="230" MinWidth="230" Closing="Window_Closing" >
    <Grid Name="MainGrid">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="310*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" Margin="0,0,0,0">
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF1F5FB" Offset="0" />
                        <GradientStop Color="#FFDCE6F4" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
                <Menu Height="Auto" Name="menu1" VerticalAlignment="Top" HorizontalAlignment="Right" Width="Auto" Grid.Column="0">
                    <Menu.Background>
                        <SolidColorBrush />
                    </Menu.Background>
                    <MenuItem Header="Scoot" />
                </Menu>

                <Image Name="profileImage" Stretch="Fill" Width="48" Source="/Scoot;component/Images/DefaultAvatar.png" Margin="6,6,0,6" HorizontalAlignment="Left" />
                <TextBlock Text="" Height="19" HorizontalAlignment="Left" Margin="60,6,0,0" Name="UserUIN" VerticalAlignment="Top" FontWeight="Bold" />
                <my:StatusBox Margin="60,29,6,0" x:Name="statusBox" VerticalAlignment="Top" StatusChanged="statusBox_StatusChanged"/>
            
            </Grid>
            <!--<ScrollViewer Grid.Row="1" Name="ContactListScrollViewer" MouseWheel="ContactList_MouseWheel" CanContentScroll="False">-->
                <ListView Name="ContactList" BorderThickness="0" UseLayoutRounding="False" SelectionMode="Single"  Grid.Row="1" ScrollViewer.CanContentScroll="False">
                    <ListView.Resources>
                        <local:WidthConverter x:Key="widthconverter"/>
                    </ListView.Resources>
                    <ListView.ItemContainerStyle>
                        <Style TargetType="ListViewItem">
                            <Setter Property="HorizontalContentAlignment"
                    Value="Stretch" />
                        </Style>
                    </ListView.ItemContainerStyle>
                    <ListView.View>

                        <GridView>
                            <GridViewColumn Width="{Binding ElementName=ContactList, Path=ActualWidth, Converter={StaticResource widthconverter}}" />
                            <GridView.ColumnHeaderContainerStyle>
                                <Style>
                                    <Setter Property="FrameworkElement.Visibility" Value="Collapsed"/>
                                </Style>
                            </GridView.ColumnHeaderContainerStyle>
                        </GridView>

                    </ListView.View>
                </ListView>
            <!--</ScrollViewer>-->
        </Grid>
</Window>
